router1的s0/0端口与FR的s0/0端口连接!
router2的s0/0端口与FR的s0/1端口连接!
router3的s0/0端口与FR的s0/2端口连接!
帧中继交换机的模拟配置:
- Router>enable
- Router# config term
- Router(config)# hostname FR
- FR(config)# frame-relay switching
- FR(config)# interface s0/0
- FR(config-if)# encapsulation frame
- FR(config-if)# frame lmi-type cisco
- FR(config-if)# frame intf-type dce
- FR(config-if)# frame route 102 interface s0/1 201
- FR(config-if)# frame route 103 interface s0/2 301
- FR(config-if)# clock rate 128000
- FR(config-if)# no shutdown
- FR(config-if)# exit
- FR(config)# interface s0/1
- FR(config-if)# encapsulation frame
- FR(config-if)# frame lmi-type cisco
- FR(config-if)# frame intf-type dce
- FR(config-if)# frame route 201 interface s0/1 102
- FR(config-if)# frame route 203 interface s0/2 302
- FR(config-if)# clock rate 64000
- FR(config-if)# no shutdown
- FR(config-if)# exit
- FR(config)# interface s0/2
- FR(config-if)# encapsulation frame
- FR(config-if)# frame lmi-type cisco
- FR(config-if)# frame intf-type dce
- FR(config-if)# frame route 301 interface s0/1 103
- FR(config-if)# frame route 302 interface s0/2 203
- FR(config-if)# clock rate 64000
- FR(config-if)# no shutdown
- FR(config-if)# exit
这里Status为Inactive的原因是对端路由器还没有配置。
- FR#show fram route
- Input Intf Input Dlci Output Intf Output Dlci Status
- Serial0/0 102 Serial0/1 201 inactive
- Serial0/0 103 Serial0/2 301 inactive
- Serial0/1 201 Serial0/0 102 inactive
- Serial0/1 203 Serial0/2 302 inactive
- Serial0/2 301 Serial0/0 103 inactive
- Serial0/2 302 Serial0/1 203 inactive
路由器的帧中继基本配置
- R1(config)# interface s0/0
- R1(config-if)# encapsulation frame //封装为帧中继
- R1(config-if)# no frame inverse-arp //关闭自动获取
- R1(config-if)# ip address 192.168.1.1 255.255.255.0
- R1(config-if)# frame map ip 192.168.1.2 102
- R1(config-if)# frame map ip 192.168.1.3 103
- R1(config-if)# no shutdown
- R2(config)# interface s0/0
- R2(config-if)# encapsulation frame //封装为帧中继
- R2(config-if)# no frame inverse-arp //关闭自动获取
- R2(config-if)# ip address 192.168.1.2 255.255.255.0
- R2(config-if)# frame map ip 192.168.1.1 201 //手工指定DLCI 和IP 的映射
- R2(config-if)# no shutdown
- R2(config-if)# interface lo 0
- R2(config-if)# ip address 10.1.0.1 255.255.255.0
- R2(config-if)# interface lo 1
- R2(config-if)# ip address 10.1.1.1 255.255.255.0
- R2(config-if)# interface lo 2
- R2(config-if)# ip address 10.1.2.1 255.255.255.0
- R2(config-if)# interface lo 3
- R2(config-if)# ip address 10.1.3.1 255.255.255.0
- R3(config)# interface s0/0
- R3(config-if)# encapsulation frame //封装为帧中继
- R3(config-if)# no frame inverse-arp //关闭自动获取
- R3(config-if)# ip address 192.168.1.3 255.255.255.0
- R3(config-if)# frame map ip 192.168.1.3 301 //手工指定DLCI 和IP 的映射
- R3(config-if)# no shutdown
- R3(config-if)# interface lo 0
- R3(config-if)# ip address 172.16.0.1 255.255.255.0
- R3(config-if)# interface lo 1
- R3(config-if)# ip address 172.16.1.1 255.255.255.0
- R3(config-if)# interface lo 2
- R3(config-if)# ip address 172.16.2.1 255.255.255.0
- R3(config-if)# interface lo 3
- R3(config-if)# ip address 172.16.3.1 255.255.255.0
验证:
- R1#show frame-relay map
- Serial0/0 (up): ip 192.168.1.2 dlci 102(0×66,0×1860), static,
- CISCO, status defined, active
- Serial0/0 (up): ip 192.168.1.3 dlci 103(0×67,0×1870), static,
- CISCO, status defined, active
- R1#ping 192.168.1.2
- Type escape sequence to abort.
- Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
- !!!!!
- Success rate is 100 percent (5/5), round-trip min/avg/max = 8/45/96 ms
- R1#ping 192.168.1.3
- Type escape sequence to abort.
- Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
- !!!!!
- Success rate is 100 percent (5/5), round-trip min/avg/max = 16/51/100 ms